
# Find libxml2 

INCLUDE(FindPkgConfig)
 
FIND_PATH(
    LIBXML2_INCLUDE_DIRS
    NAMES libxml/xmlversion.h
 
    PATHS /usr/local/include/libxml2
          /usr/include/libxml2
)
    

FIND_LIBRARY(
    LIBXML2_LIBRARIES
    NAMES xml2
    PATHS /usr/local/lib
          /usr/lib
          /usr/lib/x86_64-linux-gnu
)



INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBXML2 DEFAULT_MSG LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIRS)
MARK_AS_ADVANCED(LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIRS LIBXML2_THREADS_LIBRARIES)
